object FindNumber {
  def main(args: Array[String]): Unit = {
    var x = -99
    while (true) {
      x += 1
      val sqrt1 = math.sqrt(x + 100)
      val sqrt2 = math.sqrt(x + 268)
      if (sqrt1 == sqrt1.toInt && sqrt2 == sqrt2.toInt) {
        println(s"满足条件的数是：$x")
        return
      }
    }
  }
}